import { makeAutoObservable } from 'mobx'
import { getBarriers } from './api'
import type { BarriersListType } from './interface'
class Store {
    barriersList: BarriersListType[] = []
    sence_id: string = '0'
    constructor() {
        makeAutoObservable(this)
    }
    async getBarriersData(id: string) {
        const { data } = await getBarriers(id)
        this.sence_id = data.sence_id
        console.log(data)
        this.barriersList = data.detail
    }
}
export default Store
